I will be creating three scenarios for using R in Katacoda. They are listed below:
This introduces the tidyverse and gives a little preview of what is to come.
Step 1 covers how to install and load packages in R (install.packages() and library()). It also covers some basic information about functions.
This covers the Bob Ross dataset from 538, and using the BobRoss <- fivethirtyeight::bob_ross function to create a dataset in R.
Here we cover loading data into R from the fivethirtyeight package with tibble::tribble().
This introduces tidyr and dplyr::glimpse().
We create a tidy dataset with pivot_longer().
We revert to the wide dataset with tidyr::pivot_wider()
We split a column with tidyr::separate()
We bring two columns back together with tidyr::unite()
We change the format of a variable with dplyr::mutate()
We create a new variable based on a condition with dplyr::if_else() and dplyr::mutate().
We create a new variable based on multiple conditions with dplyr::case_when() and dplyr::mutate().
We combine creating new variables with reshaping to check our work (dplyr::case_when() and dplyr::mutate(), then dplyr::count, and tidyr::pivot_wider()).
Wrap up.
Coming soon!
Scenario 2: Build beautiful, customized graphs and charts in R with ggplot2
Scenario 3: Combine narrative with numbers for effective storytelling in R
This is the README.Rmd file for the Katacoda scenarios. All the scenarios and courses can be found on my profile page here.